package org.javagril.yuetong.service;

import org.javagril.yuetong.bean.Role;
import org.javagril.yuetong.mapper.RoleMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class RoleService {
   @Autowired
    RoleMapper roleMapper;

    public Role getRoleByUsername(String account) {
        return roleMapper.getRoleByUsername(account);
    }
}
